package com.cooper.controllers.admin;

import org.springframework.beans.factory.annotation.Autowired;

import com.cooper.constants.AppConstants;
import com.cooper.controllers.Controller;
import com.cooper.controllers.Template;
import com.cooper.pagination.PageInfo;
import com.cooper.pagination.PageResult;
import com.cooper.service.seller.DesignerApplyService;
import com.cooper.vo.DesignerApplyVo;

import net.paoding.rose.web.Invocation;
import net.paoding.rose.web.annotation.rest.Get;
import net.paoding.rose.web.annotation.rest.Post;
import net.paoding.rose.web.portal.Portal;

public class DesignerApplyAuditListController extends Controller {

	@Autowired
	DesignerApplyService designerAppplyService;
	
	@Template(title="卖家身份审核")
	@Get @Post
	public String content(Invocation inv, Portal portal, PageInfo pageInfo,DesignerApplyVo queryParamVo) throws Exception{
		pageInfo.setPageSize(10);
		
		PageResult<DesignerApplyVo> ret = designerAppplyService.queryForList(queryParamVo, pageInfo);
		inv.addModel("entryList", ret.getResult());
		inv.addModel(AppConstants.pageInfo, pageInfo);
 		inv.addModel("queryParamVo", queryParamVo);
		return "DesignerApplyAuditList";
	}
}
